/* file: https://fm-preview.cnbc.com/applications/cnbc.com/resources/files/2016/09/07/slide-fix.js?vn=1473270928*/
$(window).load(function(){
	var resizeTimer;
	if (typeof myCarousel_carouselWrapper === 'object'){
		fixSlide(myCarousel_carouselWrapper)
	} else if (typeof myCarousel_tray_1 === 'object' || typeof myCarousel_tab_0 === 'object') {
		multiTray('.carousel_asset');
		$(window).on('resize',function(){
			clearTimeout(resizeTimer);
			resizeTimer = setTimeout(function(){
				multiTray('.carousel_asset')
			},60)
		})
	}
	function fixSlide(carouselObject){
		if (typeof carouselObject === 'object'){
			carouselObject.itemWidth = carouselObject.itemWidth - 1;
			CNBC_Carousel3.Objs.push(carouselObject);
		}
	}
	function multiTray(el){
		$(el).each(function(){
			var idMatch = $(this).attr('id');
			if (idMatch.match(/tray/) || idMatch.match(/latest/) || idMatch.match(/tab/)){
				var cObject = 'myCarousel_'+idMatch;
				fixSlide(window[cObject]);
			}
		});	
	}
});
/* file: https://fm-preview.cnbc.com/applications/cnbc.com/resources/files/2018/06/05/migration-prime-franchise-header.js?vn=1536600813*/
$(function () {
    var AdventureCapitalists = {
        franchiseID: [103846474, 104763625, 104693205, 103853710, 104605152, 103853635],
        Banner: {
            img: {
                imgUrl: "https://fm.cnbc.com/applications/cnbc.com/resources/img/editorial/2017/12/26/104916658-ADV_CAP-web-1140x80.jpg",
                imgUrlMobile: "https://fm.cnbc.com/applications/cnbc.com/resources/img/editorial/2018/01/12/104944180-ADV_CAP-mobile.jpg"
            },
            link: {
                class: "franchise-header-link",
                href: "http://www.cnbc.com/adventure-capitalists/"
            },
            content: {
                class: "franchise-header-text",
                text: "WATCH FULL EPISODES NOW"
            }
        },
        Menu: {
            listItem1: {
                class: "adventure-capitalists-home",
                link: {
                    href: "https://www.cnbc.com/primetime-shows/",
                    text: "PRIME HOME"
                }
            },
            listItem2: {
                class: "adventure-capitalists-about",
                link: {
                    href: "https://www.cnbc.com/adventure-capitalists-about",
                    text: "ABOUT"
                }
            },
            listItem3: {
                class: "adventure-capitalists-investors",
                link: {
                    class: "disableClick",
                    href: "",
                    text: "INVESTORS"
                },
                subMenu: {
                    listItem1: {
                        class: "adventure-capitalists-jeremy-bloom",
                        link: {
                            href: "https://www.cnbc.com/jeremy-bloom/",
                            text: "JEREMY BLOOM"
                        }
                    },
                    listItem2: {
                        class: "adventure-capitalists-shawn-johnson-east",
                        link: {
                            href: "https://www.cnbc.com/shawn-johnson-east/",
                            text: "SHAWN JOHNSON EAST"
                        }
                    },
                    listItem3: {
                        class: "adventure-capitalists-dhani-jones",
                        link: {
                            href: "https://www.cnbc.com/dhani-jones/",
                            text: "DHANI JONES"
                        }
                    }
                }
            },
            listItem4: {
                class: "adventure-capitalists-full-episodes",
                link: {
                    href: "http://www.cnbc.com/live-tv/adventure-capitalists",
                    text: "FULL EPISODES"
                }
            },
            listItem5: {
                class: "adventure-capitalists-videos",
                link: {
                    href: "http://www.cnbc.com/videos-adventure-capitalists/",
                    text: "VIDEOS"
                }
            }
        }
    };

    var AmericanGreed = {
        franchiseID: [18057119, 104561985, 103810658, 104577115, 104577136, 104559625, 100001473],
        Banner: {
            img: {
                imgUrl: "https://fm.cnbc.com/applications/cnbc.com/resources/img/editorial/2017/12/26/104916661-AM_GREED-web-1140x80.jpg?d=1516205082",
                imgUrlMobile: "https://fm.cnbc.com/applications/cnbc.com/resources/img/editorial/2018/01/12/104944234-AM_GREED-mobile.jpg"
            },
            link: {
                class: "franchise-header-link",
                href: "http://www.cnbc.com/live-tv/american-greed"
            },
            content: {
                class: "franchise-header-text",
                text: "ALL-NEW MONDAYS 10P ET/PT"
            }
        },
        Menu: {
            listItem1: {
                class: "american-greed-home",
                link: {
                    href: "https://www.cnbc.com/primetime-shows/",
                    text: "PRIME HOME"
                }
            },
            listItem2: {
                class: "american-greed-about",
                link: {
                    href: "//www.cnbc.com/american-greed-about",
                    text: "ABOUT"
                }
            },
            listItem2: {
                class: "american-greed-stacy-keach",
                link: {
                    class: "",
                    href: "//www.cnbc.com/stacy-keach",
                    text: "STACY KEACH"
                }
            },
            listItem3: {
                class: "american-greed-full-episodes",
                link: {
                    href: "http://www.cnbc.com/live-tv/american-greed",
                    text: "FULL EPISODES"
                }
            },
            listItem4: {
                class: "american-greed-videos",
                link: {
                    href: "//www.cnbc.com/american-greed/videos",
                    text: "VIDEOS"
                }
            },
            listItem5: {
                class: "american-greed-report",
                link: {
                    href: "//www.cnbc.com/american-greed-reports",
                    text: "THE AMERICAN GREED REPORT"
                }
            },
            // listItem6: {
            //     class: "american-greed-evidence",
            //     link: {
            //         href: "//www.cnbc.com/evidence-files---season-11",
            //         text: "EVIDENCE"
            //     }
            // },
            listItem7: {
                class: "american-greed-podcast",
                link: {
                    href: "https://www.cnbc.com/2018/09/04/american-greed-podcast.html",
                    text: "PODCAST"
                }
            }
        }
    };

    var BackInTheGame = {
        franchiseID: [105050237, 105050829],
        Banner: {
            img: {
                imgUrl: "https://fm.cnbc.com/applications/cnbc.com/resources/img/editorial/2018/03/07/105050183-BACK_IN_THE_GAME-web-1140x80.jpg",
                imgUrlMobile: "https://fm.cnbc.com/applications/cnbc.com/resources/img/editorial/2018/03/07/105050186-BACK_IN_THE_GAME-mobile-520x60.jpg"
            },
            link: {
                class: "franchise-header-link",
                href: "https://www.cnbc.com/back-in-the-game/"
            },
            content: {
                class: "franchise-header-text",
                text: "WATCH IT NOW"
            }
        },
        Menu: {
            listItem1: {
                class: "back-in-the-game-home",
                link: {
                    href: "https://www.cnbc.com/primetime-shows/",
                    text: "PRIME HOME"
                }
            },
            listItem2: {
                class: "back-in-the-game-about",
                link: {
                    href: "https://www.cnbc.com/back-in-the-game-about/",
                    text: "ABOUT"
                }
            },
            listItem3: {
                class: "back-in-the-game-videos",
                link: {
                    href: "https://www.cnbc.com/back-in-the-game-videos/",
                    text: "VIDEOS"
                }
            }
        }
    };
    
    var BillionDollarBuyer = {
        franchiseID: [103399548, 104916686, 104916717, 103799408],
        Banner: {
            img: {
                imgUrl: "https://fm.cnbc.com/applications/cnbc.com/resources/img/editorial/2017/12/26/104916667-BILLION_DOLLAR_BUYER-web-1140x80.jpg",
                imgUrlMobile: "https://fm.cnbc.com/applications/cnbc.com/resources/img/editorial/2018/01/12/104943420-BILLION_DOLLAR_BUYER-mobile.jpg"
            },
            link: {
                class: "franchise-header-link",
                href: "https://www.cnbc.com/billion-dollar-buyer/"
            },
            content: {
                class: "franchise-header-text",
                text: "WATCH FULL EPISODES NOW"
            }
        },
        Menu: {
            listItem1: {
                class: "billion-dollar-buyer-home",
                link: {
                    href: "https://www.cnbc.com/primetime-shows/",
                    text: "PRIME HOME"
                }
            },
            listItem2: {
                class: "billion-dollar-buyer-about",
                link: {
                    href: "https://www.cnbc.com/about-billion-dollar-buyer/",
                    text: "ABOUT"
                }
            },
            listItem3: {
                class: "billion-dollar-buyer-tillman-fertitta",
                link: {
                    href: "https://www.cnbc.com/tilman-j-fertitta/",
                    text: "TILMAN FERTITTA"
                }
            },
            listItem4: {
                class: "billion-dollar-buyer-episodes",
                link: {
                    href: "http://www.cnbc.com/live-tv/billion-dollar-buyer",
                    text: "FULL EPISODES"
                }
            },
            listItem5: {
                class: "billion-dollar-buyer-videos",
                link: {
                    href: "https://www.cnbc.com/billion-dollar-buyer/videos",
                    text: "VIDEOS"
                }
            },
            listItem6: {
                class: "billion-dollar-buyer-casting-call",
                link: {
                    href: "https://billiondollarbuyerseason2castingcall.castingcrane.com/",
                    text: "CASTING"
                }
            }
        }
    };
    var BitcoinBoomOrBust = {
        franchiseID: [105408922,105401015],
        Banner: {
            img: {
                imgUrl: "https://image.cnbcfm.com/api/v1/image/preview?image=eyJjdXN0b21fY29vcmRpbmF0ZXMiOnsiaCI6IjgwIiwidyI6IjExMzYiLCJ4IjoiMiIsInkiOiIwIn0sImZpbGUiOnsiZmlsZW5hbWUiOiIxMDU0MDkwMDMtMTUzNDk0ODY3NTE0MmJpdGNvaW5fYm9vbW9yYnVzdC13ZWItMTE0MHg4MC5qcGciLCJmb2xkZXIiOiJhd3NtZWRpYSIsInBhdGgiOiIyMDE4LzA4LzIyLyIsInZlcnNpb24iOjE1MzQ5NDg3MjU5MTF9fQ%3D%3D",
                imgUrlMobile: "https://image.cnbcfm.com/api/v1/image/preview?image=eyJmaWxlIjp7ImZpbGVuYW1lIjoiMTA1NDA5MDA5LTE1MzQ5NDg2OTQwMzRiaXRjb2luX2Jvb21vcmJ1c3QtbW9iaWxlLTUyMHg2MC5qcGciLCJwYXRoIjoiMjAxOC8wOC8yMi8iLCJmb2xkZXIiOiJhd3NtZWRpYSIsInZlcnNpb24iOiIxNDc3MDc5MjQ5In0sImN1c3RvbV9jb29yZGluYXRlcyI6eyJ4IjowLCJ5IjowLCJoIjoiMCIsInciOiIwIn19"
            },
            link: {
                class: "franchise-header-link",
                href: "http://www.cnbc.com/live-tv/cnbc-originals/full-episode/bitcoin-boom-or-bust/1307416643897"
            },
            content: {
                class: "franchise-header-text",
                text: "WATCH ON DEMAND"
            }
        },
        Menu: {
            listItem1: {
                class: "bitcoin-boom-bust-home",
                link: {
                    href: "https://www.cnbc.com/primetime-shows/",
                    text: "PRIME HOME"
                }
            },
            listItem2: {
                class: "bitcoin-boom-bust-about",
                link: {
                    href: "http://cnbc.com/bitcoinboom-or-bust-about/",
                    text: "ABOUT"
                }
            }
        }
    };

    var BlueCollarMillionaires = {
        franchiseID: [102812636],
        Banner: {
            img: {
                imgUrl: "http://fm.cnbc.com/applications/cnbc.com/resources/styles/skin/tv/make-it-shows/blue-collar-millionaires/cnbc-header-blue-collar-millionaires-s2-1140x80-alt.jpg",
                imgUrlMobile: "http://fm.cnbc.com/applications/cnbc.com/resources/styles/skin/tv/make-it-shows/blue-collar-millionaires/cnbc-header-blue-collar-millionaires-s2-1140x80-alt.jpg"
            },
            link: {
                class: "franchise-header-link",
                href: "https://www.cnbc.com/blue-collar-millionaires/"
            },
            content: {
                class: "franchise-header-text",
                text: ""
            }
        },
        Menu: {
            listItem1: {
                class: "blue-collar-millionaires-home",
                link: {
                    href: "https://www.cnbc.com/primetime-shows/",
                    text: "PRIME HOME"
                }
            }
        }
    };

    var ClevelandHustles = {
        franchiseID: [103399726],
        Banner: {
            img: {
                imgUrl: "http://fm.cnbc.com/applications/cnbc.com/resources/styles/skin/tv/make-it-shows/cleveland-hustles/cnbc-header-cleveland-hustles-v2-1140x80.jpg",
                imgUrlMobile: "http://fm.cnbc.com/applications/cnbc.com/resources/styles/skin/tv/make-it-shows/cleveland-hustles/cnbc-header-cleveland-hustles-v2-1140x80.jpg"
            },
            link: {
                class: "franchise-header-link",
                href: "https://www.cnbc.com/cleveland-hustles/"
            },
            content: {
                class: "franchise-header-text",
                text: ""
            }
        },
        Menu: {
            listItem1: {
                class: "cleveland-Hustles-home",
                link: {
                    href: "https://www.cnbc.com/primetime-shows/",
                    text: "PRIME HOME"
                }
            }
        }
    };

    var CrisisOnWallStreet = {
        franchiseID: [105423400],
        Banner: {
            img: {
                imgUrl: "https://image.cnbcfm.com/api/v1/image/preview?image=eyJjdXN0b21fY29vcmRpbmF0ZXMiOnsiaCI6IjQwIiwidyI6IjQ5IiwieCI6IjExMCIsInkiOiI2MSJ9LCJmaWxlIjp7ImZpbGVuYW1lIjoiMTA1NDI1NDYzLTE1MzU3NDMwMjc1NjVjcmlzaXNfb253YWxsc3RyZWV0LXdlYi0xMTQweDgwX3YzLmpwZyIsImZvbGRlciI6ImF3c21lZGlhIiwicGF0aCI6IjIwMTgvMDgvMzEvIiwidmVyc2lvbiI6MTUzNTc0Mjk3MDg5Nn19",
                imgUrlMobile: "https://image.cnbcfm.com/api/v1/image/preview?image=eyJjdXN0b21fY29vcmRpbmF0ZXMiOnsiaCI6IjQwIiwidyI6IjQ3IiwieCI6IjExMCIsInkiOiI2MSJ9LCJmaWxlIjp7ImZpbGVuYW1lIjoiMTA1NDI1NDY1LTE1MzU3NDI5ODE4NzZjcmlzaXNfb253YWxsc3RyZWV0LW1vYmlsZS01MjB4NjBfdjIuanBnIiwiZm9sZGVyIjoiYXdzbWVkaWEiLCJwYXRoIjoiMjAxOC8wOC8zMS8iLCJ2ZXJzaW9uIjoxNTM1NzQyOTcwMDIyfX0%3D"
            },
            link: {
                class: "franchise-header-link",
                href: "http://www.cnbc.com/live-tv/cnbc-originals/full-episode/crisis-on-wall-street-the-week-that-shook-the-world/1319070275798"
            },
            content: {
                class: "franchise-header-text",
                text: "WATCH ON DEMAND"
            }
        },
        Menu: {
            listItem1: {
                class: "crisis-on-wall-street-home",
                link: {
                    href: "https://www.cnbc.com/primetime-shows/",
                    text: "PRIME HOME"
                }
            },
            listItem2: {
                class: "crisis-on-wall-street-about",
                link: {
                    href: "https://www.cnbc.com/crisis-on-wall-street-about/",
                    text: "ABOUT"
                }
            },
        }
    };
    
    var DealOrNoDeal = {
        franchiseID: [105452375],
        pageNodeId: [105452375],
        Banner: {
            img: {
                imgUrl: "https://image.cnbcfm.com/api/v1/image/preview?image=eyJjdXN0b21fY29vcmRpbmF0ZXMiOnsiaCI6IjM1NjAiLCJ3IjoiNTUwNSIsIngiOiIxNTEiLCJ5IjoiMTYzIn0sImZpbGUiOnsiZmlsZW5hbWUiOiIxMDUzNTI1MDItMTUzMjUzNjg2NDY3N2RvbmQtd2ViLTExNDB4ODAuanBnIiwiZm9sZGVyIjoiYXdzbWVkaWEiLCJwYXRoIjoiMjAxOC8wNy8yNS8iLCJ2ZXJzaW9uIjoxNTMwMDI0NzE3NjgzfX0%3D",
                imgUrlMobile: "https://image.cnbcfm.com/api/v1/image/preview?image=eyJjdXN0b21fY29vcmRpbmF0ZXMiOnsiaCI6IjM1NjAiLCJ3IjoiNTUwNSIsIngiOiIxNTEiLCJ5IjoiMTYzIn0sImZpbGUiOnsiZmlsZW5hbWUiOiIxMDUzNTI1MDYtMTUzMjUzNjk2MzI0N2RvbmQtbW9iaWxlLTUyMHg2MC5qcGciLCJmb2xkZXIiOiJhd3NtZWRpYSIsInBhdGgiOiIyMDE4LzA3LzI1LyIsInZlcnNpb24iOjE1MzAwMjQ3MTc2ODN9fQ%3D%3D"
            },
            link: {
                class: "franchise-header-link",
                href: "https://www.cnbc.com/deal-or-no-deal-bio/"
            },
            content: {
                class: "franchise-header-text",
                text: "Premieres December 5th"
            }
        },
        Menu: {
            listItem1: {
                class: "deal-or-no-deal-home",
                link: {
                    href: "https://www.cnbc.com/primetime-shows/",
                    text: "PRIME HOME"
                }
            }
        }
    };

    var DeadlyRich = {
        franchiseID: [105284538],
        Banner: {
            img: {
                imgUrl: "https://image.cnbcfm.com/api/v1/image/preview?image=eyJmaWxlIjp7ImZpbGVuYW1lIjoiMTA1Mjg0NjkzLTE1MzA2MzM1ODg4MjdkZWFkbHlfcmljaC13ZWItMTE0MHg4MC5qcGciLCJwYXRoIjoiMjAxOC8wNy8wMy8iLCJmb2xkZXIiOiJhd3NtZWRpYSIsInZlcnNpb24iOiIxNTI5NTIwNDYyIn0sImN1c3RvbV9jb29yZGluYXRlcyI6eyJ4IjowLCJ5IjowLCJoIjoiMCIsInciOiIwIn19",
                imgUrlMobile: "https://image.cnbcfm.com/api/v1/image/preview?image=eyJmaWxlIjp7ImZpbGVuYW1lIjoiMTA1Mjg0Njk1LTE1MzA2MzM0NjY0MTRsYXJnZTEuanBnIiwicGF0aCI6IjIwMTgvMDcvMDMvIiwiZm9sZGVyIjoiYXdzbWVkaWEiLCJ2ZXJzaW9uIjoiMTUyOTUyMDU0NSJ9LCJjdXN0b21fY29vcmRpbmF0ZXMiOnsieCI6MCwieSI6MCwiaCI6IjAiLCJ3IjoiMCJ9fQ%3D%3D"
            },
            link: {
                class: "franchise-header-link",
                href: "http://www.cnbc.com/live-tv/deadly-rich"
            },
            content: {
                class: "franchise-header-text",
                text: "CATCH UP ON DEMAND"
            }
        },
        Menu: {
            listItem1: {
                class: "deadly-rich-home",
                link: {
                    href: "https://www.cnbc.com/primetime-shows/",
                    text: "PRIME HOME"
                }
            }
        }
    };

    var JayLenosGarage = {
        franchiseID: [103654508, 104559811, 103808240],
        Banner: {
            img: {
                imgUrl: "https://fm.cnbc.com/applications/cnbc.com/resources/img/editorial/2017/12/26/104916704-JAY_LENO-web-1140x80.jpg",
                imgUrlMobile: "https://fm.cnbc.com/applications/cnbc.com/resources/img/editorial/2018/01/16/104948224-JAY_LENO-mobile.jpg"
            },
            link: {
                class: "franchise-header-link",
                href: "https://www.cnbc.com/jay-lenos-garage/"
            },
            content: {
                class: "franchise-header-text",
                text: "All New Thursdays 10P ET/PT"
            }
        },
        Menu: {
            listItem1: {
                class: "jay-lenos-garage-home",
                link: {
                    href: "https://www.cnbc.com/primetime-shows/",
                    text: "PRIME HOME"
                }
            },
            listItem2: {
                class: "jay-lenos-garage-about",
                link: {
                    href: "https://www.cnbc.com/jay-lenos-garage-about",
                    text: "ABOUT"
                }
            },
            listItem3: {
                class: "jay-lenos-garage-jay-leno",
                link: {
                    href: "https://www.cnbc.com/jay-leno-profile",
                    text: "JAY LENO"
                }
            },
            listItem4: {
                class: "jay-lenos-garage-full-episodes",
                link: {
                    href: "http://www.cnbc.com/live-tv/jay-lenos-garage",
                    text: "FULL EPISODES"
                }
            },
            listItem5: {
                class: "jay-lenos-garage-videos",
                link: {
                    href: "https://www.cnbc.com/jay-lenos-garage/videos",
                    text: "VIDEOS"
                }
            },
            listItem6: {
                class: "jay-lenos-garage-vr-experience",
                link: {
                    href: "http://jaysridealong.cnbc.com/",
                    text: "VR EXPERIENCE"
                }
            }
        }
    };

    var MakeMeAMillionaireInventor = {
        franchiseID: [102812487],
        Banner: {
            img: {
                imgUrl: "http://fm.cnbc.com/applications/cnbc.com/resources/styles/skin/tv/make-it-shows/make-me-a-millionaire-inventor/cnbc-header-make-me-a-millionaire-inventor-1140x80.jpg",
                imgUrlMobile: "http://fm.cnbc.com/applications/cnbc.com/resources/styles/skin/tv/make-it-shows/make-me-a-millionaire-inventor/cnbc-header-make-me-a-millionaire-inventor-1140x80.jpg"
            },
            link: {
                class: "franchise-header-link",
                href: "https://www.cnbc.com/make-me-a-millionaire-inventor/"
            },
            content: {
                class: "franchise-header-text",
                text: ""
            }
        },
        Menu: {
            listItem1: {
                class: "make-me-a-millionaire-home",
                link: {
                    href: "https://www.cnbc.com/primetime-shows/",
                    text: "PRIME HOME"
                }
            }
        }
    };

    var OceansOfCrime = {
        franchiseID: [104691230, 104989245],
        Banner: {
            img: {
                imgUrl: "https://fm.cnbc.com/applications/cnbc.com/resources/img/editorial/2018/02/05/104989081-OCEANS_OF_CRIME-web-1140x80.jpg",
                imgUrlMobile: "https://fm.cnbc.com/applications/cnbc.com/resources/img/editorial/2018/02/05/104989104-OCEANS_OF_CRIME-mobile-520x60.jpg"
            },
            link: {
                class: "franchise-header-link",
                href: "https://www.cnbc.com/oceans-of-crime/"
            },
            content: {
                class: "franchise-header-text",
                text: "WATCH IT NOW"
            }
        },
        Menu: {
            listItem1: {
                class: "oceans-of-crime-home",
                link: {
                    href: "https://www.cnbc.com/primetime-shows/",
                    text: "PRIME HOME"
                }
            },
            listItem2: {
                class: "oceans-of-crime-about",
                link: {
                    href: "https://www.cnbc.com/oceans-of-crime-about",
                    text: "ABOUT"
                }
            },
            listItem3: {
                class: "oceans-of-crime-videos",
                link: {
                    href: "https://www.cnbc.com/oceans-of-crime-videos",
                    text: "VIDEOS"
                }
            }
        }
    };

    var SecretLivesOfTheSuperRich = {
        franchiseID: [48418471],
        Banner: {
            img: {
                imgUrl: "https://fm.cnbc.com/applications/cnbc.com/resources/img/editorial/2017/12/26/104916714-SECRET_LIVES-web-1140x80.jpg",
                imgUrlMobile: "https://fm.cnbc.com/applications/cnbc.com/resources/img/editorial/2018/01/17/104950769-SECRET_LIVES-mobile.jpg"
            },
            link: {
                class: "franchise-header-link",
                href: "https://www.cnbc.com/super-rich/"
            },
            content: {
                class: "franchise-header-text",
                text: "WATCH FULL EPISODES NOW"
            }
        },
        Menu: {
            listItem1: {
                class: "secret-lives-super-rich-home",
                link: {
                    href: "https://www.cnbc.com/primetime-shows/",
                    text: "PRIME HOME"
                }
            }
        }
    };

    var SharkTank = {
        franchiseID: [101229255],
        Banner: {
            img: {
                imgUrl: "https://fm.cnbc.com/applications/cnbc.com/resources/img/editorial/2018/01/17/104950806-SHARK_TANK-web-1140x80.jpg",
                imgUrlMobile: "https://fm.cnbc.com/applications/cnbc.com/resources/img/editorial/2018/01/17/104950812-SHARK_TANK-mobile.jpg"
            },
            link: {
                class: "franchise-header-link",
                href: "https://www.cnbc.com/shark-tank/"
            },
            content: {
                class: "franchise-header-text",
                text: "Weeknights 7P ET"
            }
        },
        Menu: {
            listItem1: {
                class: "shark-tank-home",
                link: {
                    href: "https://www.cnbc.com/primetime-shows/",
                    text: "PRIME HOME"
                }
            }
        }
    };

    var StatenIslandHustle = {
        franchiseID: [105008641, 105114923],
        Banner: {
            img: {
                imgUrl: "https://fm.cnbc.com/applications/cnbc.com/resources/img/editorial/2018/01/17/104950822-SI_HUSTLES-web-1140x80_1.jpg",
                imgUrlMobile: "https://fm.cnbc.com/applications/cnbc.com/resources/img/editorial/2018/01/17/104950830-SI_HUSTLES-mobile.jpg"
            },
            link: {
                class: "franchise-header-link",
                href: "https://www.cnbc.com/staten-island-hustle/"
            },
            content: {
                class: "franchise-header-text",
                text: "WATCH FULL EPISODES NOW"
            }
        },
        Menu: {
            listItem1: {
                class: "sih-home",
                link: {
                    href: "https://www.cnbc.com/primetime-shows/",
                    text: "PRIME HOME"
                }
            },
            listItem2: {
                class: "sih-about",
                link: {
                    href: "https://www.cnbc.com/staten-island-hustle-about/",
                    text: "ABOUT"
                }
            },
            listItem3: {
                class: "sih-the-hustlers",
                link: {
                    href: "http://cnbc.com/2018/02/22/staten-island-hustlers.html",
                    text: "THE HUSTLERS"
                }
            },
            listItem4: {
                class: "sih-full-episodes",
                link: {
                    href: "http://www.cnbc.com/live-tv/staten-island-hustle",
                    text: "FULL EPISODES"
                }
            },
            listItem5: {
                class: "sih-videos-page",
                link: {
                    href: "http://cnbc.com/staten-island-hustle/videos",
                    text: "VIDEOS"
                }
            },
            listItem6: {
                class: "sih-meet-the-crew",
                link: {
                    href: "http://cnbc.com/staten-island-hustle/gallery",
                    text: "MEET THE CREW"
                }
            }
        }
    };

    var TheDeed = {
        franchiseID: [104633603, 104249568, 104121895],
        Banner: {
            img: {
                imgUrl: "https://fm.cnbc.com/applications/cnbc.com/resources/img/editorial/2017/12/26/104916702-DEED-web-1140x80.jpg?d=1516206544",
                imgUrlMobile: "https://fm.cnbc.com/applications/cnbc.com/resources/img/editorial/2018/01/17/104950677-DEED-mobile.jpg"
            },
            link: {
                class: "franchise-header-link",
                href: "https://www.cnbc.com/the-deed/"
            },
            content: {
                class: "franchise-header-text",
                text: "All New Wednesdays 10P ET/PT"
            }
        },
        Menu: {
            listItem1: {
                class: "the-deed-home",
                link: {
                    href: "https://www.cnbc.com/primetime-shows/",
                    text: "PRIME HOME"
                }
            },
            listItem2: {
                class: "the-deed-about",
                link: {
                    href: "//www.cnbc.com/the-deed-about",
                    text: "ABOUT"
                }
            },
            listItem3: {
                class: "the-deed-sidney-torres",
                link: {
                    class: "",
                    href: "https://www.cnbc.com/cnbc-the-deed-sidney-torres/",
                    text: "SIDNEY TORRES"
                }
            },
            listItem4: {
                class: "the-deed-full-episodes",
                link: {
                    href: "http://www.cnbc.com/live-tv/the-deed",
                    text: "FULL EPISODES"
                }
            }
        }
    };

    var TheDeedChicago = {
        franchiseID: [104250317, 104666998, 18057119, 104258615],
        Banner: {
            img: {
                imgUrl: "https://fm.cnbc.com/applications/cnbc.com/resources/img/editorial/2017/12/26/104916701-DEED_CHICAGO-web-1140x80.jpg?d=1516207045",
                imgUrlMobile: "https://fm.cnbc.com/applications/cnbc.com/resources/img/editorial/2018/01/17/104950693-DEED_CHICAGO-mobile.jpg"
            },
            link: {
                class: "franchise-header-link",
                href: "https://www.cnbc.com/the-deed-chicago/"
            },
            content: {
                class: "franchise-header-text",
                text: "WATCH FULL EPISODES NOW"
            }
        },
        Menu: {
            listItem1: {
                class: "the-deed-chicago-home",
                link: {
                    href: "https://www.cnbc.com/primetime-shows/",
                    text: "PRIME HOME"
                }
            },
            listItem2: {
                class: "the-deed-chicago-about",
                link: {
                    href: "https://www.cnbc.com/the-deed-chicago-about/",
                    text: "ABOUT"
                }
            },
            listItem3: {
                class: "the-deed-chicago-sean-conlon",
                link: {
                    class: "",
                    href: "https://www.cnbc.com/the-deed-chicago-sean-conlon/",
                    text: "SEAN CONLON"
                }
            },
            listItem4: {
                class: "the-deed-chicago-full-episodes",
                link: {
                    href: "http://www.cnbc.com/live-tv/the-deed-chicago",
                    text: "FULL EPISODES"
                }
            }
        }
    };

    var TheFilthyRichGuide = {
        franchiseID: [102062725],
        Banner: {
            img: {
                imgUrl: "https://fm.cnbc.com/applications/cnbc.com/resources/img/editorial/2018/01/18/104953188-FILTHY_RICH_GUIDE-web-1140x80.jpg",
                imgUrlMobile: "https://fm.cnbc.com/applications/cnbc.com/resources/img/editorial/2018/01/18/104953198-FILTHY_RICH_GUIDE-mobile.jpg"
            },
            link: {
                class: "franchise-header-link",
                href: "https://www.cnbc.com/the-filthy-rich-guide/"
            },
            content: {
                class: "franchise-header-text",
                text: "WATCH FULL EPISODES NOW"
            }
        },
        Menu: {
            listItem1: {
                class: "filthy-rich-home",
                link: {
                    href: "https://www.cnbc.com/primetime-shows/",
                    text: "PRIME HOME"
                }
            },
        }
    };

    var TheJobInterview = {
        franchiseID: [104643078, 104752783, 104693719],
        pageNodeId: [104818925],
        Banner: {
            img: {
                imgUrl: "https://fm.cnbc.com/applications/cnbc.com/resources/img/editorial/2017/12/26/104916710-JOB_INTERVIEW-web-1140x80.jpg?d=1516207737",
                imgUrlMobile: "https://fm.cnbc.com/applications/cnbc.com/resources/img/editorial/2018/01/17/104950716-JOB_INTERVIEW-mobile.jpg"
            },
            link: {
                class: "franchise-header-link",
                href: "https://www.cnbc.com/the-job-interview/"
            },
            content: {
                class: "franchise-header-text",
                text: "WATCH FULL EPISODES NOW"
            }
        },
        Menu: {
            listItem1: {
                class: "the-job-interview-home",
                link: {
                    href: "https://www.cnbc.com/primetime-shows/",
                    text: "PRIME HOME"
                }
            },
            listItem2: {
                class: "the-job-interview-about",
                link: {
                    href: "https://www.cnbc.com/the-job-interview-about",
                    text: "ABOUT"
                }
            },
            listItem3: {
                class: "the-job-interview-videos",
                link: {
                    href: "http://www.cnbc.com/the-job-interview-videos",
                    text: "VIDEOS"
                }
            },
            listItem4: {
                class: "the-job-interview-full-episodes",
                link: {
                    href: "http://www.cnbc.com/live-tv/the-job-interview",
                    text: "FULL EPISODES"
                }
            },
            listItem5: {
                class: "the-job-interview-celebrity-stories",
                link: {
                    href: "https://www.cnbc.com/celebrity-my-worst-job-interview",
                    text: "CELEBRITY STORIES"
                }
            }
        }
    };

    var ThePartner = {
        franchiseID: [103399830],
        Banner: {
            img: {
                imgUrl: "http://fm.cnbc.com/applications/cnbc.com/resources/styles/skin/tv/make-it-shows/the-partner/cnbc-header-the-partner-1140x80-v2.jpg",
                imgUrlMobile: "http://fm.cnbc.com/applications/cnbc.com/resources/styles/skin/tv/make-it-shows/the-partner/cnbc-header-the-partner-1140x80-v2.jpg"
            },
            link: {
                class: "franchise-header-link",
                href: "https://www.cnbc.com/the-partner/"
            },
            content: {
                class: "franchise-header-text",
                text: ""
            }
        },
        Menu: {
            listItem1: {
                class: "the-partner-home",
                link: {
                    href: "https://www.cnbc.com/primetime-shows/",
                    text: "PRIME HOME"
                }
            }
        }
    };

    var TheProfit = {
        franchiseID: [100788798, 104451357, 103943665, 104532116, 100795598, 104068336],
        Banner: {
            img: {
                imgUrl: "https://fm.cnbc.com/applications/cnbc.com/resources/img/editorial/2018/01/17/104951307-PROFIT-web-1140x80.jpg",
                imgUrlMobile: "https://fm.cnbc.com/applications/cnbc.com/resources/img/editorial/2018/01/16/104948256-PROFIT-mobile.jpg"
            },
            link: {
                class: "franchise-header-link",
                href: "http://www.cnbc.com/live-tv/the-profit"
            },
            content: {
                class: "franchise-header-text",
                text: "CATCH UP ON DEMAND"
            }
        },
        Menu: {
            listItem1: {
                class: "the-profit-home",
                link: {
                    href: "https://www.cnbc.com/primetime-shows/",
                    text: "PRIME HOME"
                }
            },
            listItem2: {
                class: "the-profit-about",
                link: {
                    href: "//www.cnbc.com/the-profit-about",
                    text: "ABOUT"
                }
            },
            listItem3: {
                class: "the-profit-marcus-lemonis",
                link: {
                    class: "",
                    href: "//www.cnbc.com/marcus-lemonis-bio",
                    text: "MARCUS LEMONIS"
                }
            },
            listItem4: {
                class: "the-profit-full-episodes",
                link: {
                    href: "http://www.cnbc.com/live-tv/the-profit",
                    text: "FULL EPISODES"
                }
            },
            listItem5: {
                class: "the-profit-videos",
                link: {
                    href: "//www.cnbc.com/id/104451357",
                    text: "VIDEOS"
                }
            },
            listItem6: {
                class: "the-profit-effect",
                link: {
                    href: "//www.cnbc.com/the-profit-effect",
                    text: "THE PROFIT EFFECT"
                }
            },
            listItem7: {
                class: "before-the-profit",
                link: {
                    href: "https://www.cnbc.com/2017/11/21/never-before-seen-casting-videos-from-the-profit.html",
                    text: "BEFORE THE PROFIT"
                }
            }
        }
    };

    var TheProfitInCuba = {
        franchiseID: [104068336],
        Banner: {
            img: {
                imgUrl: "https://fm.cnbc.com/applications/cnbc.com/resources/img/editorial/2018/01/17/104951307-PROFIT-web-1140x80.jpg",
                imgUrlMobile: "https://fm.cnbc.com/applications/cnbc.com/resources/img/editorial/2018/01/16/104948256-PROFIT-mobile.jpg"
            },
            link: {
                class: "franchise-header-link",
                href: "https://www.cnbc.com/the-profit-in-cuba/"
            },
            content: {
                class: "franchise-header-text",
                text: ""
            }
        },
        Menu: {
            listItem1: {
                class: "the-profit-in-cuba-home",
                link: {
                    href: "https://www.cnbc.com/primetime-shows/",
                    text: "PRIME HOME"
                }
            }
        }
    };

    var TheProfitInMarijuanaCountry = {
        franchiseID: [104610628],
        Banner: {
            img: {
                imgUrl: "https://fm.cnbc.com/applications/cnbc.com/resources/img/editorial/2018/01/16/104948584-PROFIT_POT-web-1140x80.jpg",
                imgUrlMobile: "https://fm.cnbc.com/applications/cnbc.com/resources/img/editorial/2018/01/16/104948320-PROFIT_POT-mobile.jpg"
            },
            link: {
                class: "franchise-header-link",
                href: "https://www.cnbc.com/the-profit-marijuana/"
            },
            content: {
                class: "franchise-header-text",
                text: ""
            }
        },
        Menu: {
            listItem1: {
                class: "the-profit-in-marijuana-country-home",
                link: {
                    href: "https://www.cnbc.com/primetime-shows/",
                    text: "PRIME HOME"
                }
            }
        }
    };

    var UndercoverBoss = {
        franchiseID: [103654516],
        Banner: {
            img: {
                imgUrl: "https://fm.cnbc.com/applications/cnbc.com/resources/img/editorial/2018/01/17/104950831-UNDER_BOSS-web-1140x80.jpg",
                imgUrlMobile: "https://fm.cnbc.com/applications/cnbc.com/resources/img/editorial/2018/01/17/104950834-UNDER_BOSS-mobile.jpg"
            },
            link: {
                class: "franchise-header-link",
                href: "https://www.cnbc.com/undercover-boss/"
            },
            content: {
                class: "franchise-header-text",
                text: "SATURDAYS STARTING AT 7P ET"
            }
        },
        Menu: {
            listItem1: {
                class: "undercover-boss-home",
                link: {
                    href: "https://www.cnbc.com/primetime-shows/",
                    text: "PRIME HOME"
                }
            }
        }
    };

    var WarrenBuffetDoc = {
        franchiseID: [105165636, 105171821],
        Banner: {
            img: {
                imgUrl: "https://fm.cnbc.com/applications/cnbc.com/resources/img/editorial/2018/04/27/105166321-WARRENBUFFET-DOC-web-1140x80_1.jpg",
                imgUrlMobile: "https://fm.cnbc.com/applications/cnbc.com/resources/img/editorial/2018/04/27/105166317-WARRENBUFFET-DOC-mobile.jpg"
            },
            link: {
                class: "franchise-header-link",
                href: "https://www.cnbc.com/buffett-doc/"
            },
            content: {
                class: "franchise-header-text",
                text: "WATCH ON DEMAND"
            }
        },
        Menu: {
            listItem1: {
                class: "warren-buffet-home",
                link: {
                    href: "https://www.cnbc.com/primetime-shows/",
                    text: "PRIME HOME"
                }
            },
            listItem2: {
                class: "buffet-doc-about",
                link: {
                    href: "https://www.cnbc.com/buffett-doc-about/",
                    text: "ABOUT"
                }
            },
            listItem3: {
                class: "buffet-doc-videos",
                link: {
                    href: "https://www.cnbc.com/buffett-doc-videos/",
                    text: "VIDEOS"
                }
            }
        }
    };

    var WestTexasInvestorsClub = {
        franchiseID: [102919084],
        Banner: {
            img: {
                imgUrl: "https://fm.cnbc.com/applications/cnbc.com/resources/styles/skin/tv/make-it-shows/west-texas-investors-club/cnbc-header-wtic-1140x80.jpg",
                imgUrlMobile: "https://fm.cnbc.com/applications/cnbc.com/resources/styles/skin/tv/make-it-shows/west-texas-investors-club/cnbc-header-wtic-1140x80.jpg"
            },
            link: {
                class: "franchise-header-link",
                href: "https://www.cnbc.com/west-texas-investors-club/"
            },
            content: {
                class: "franchise-header-text",
                text: ""
            }
        },
        Menu: {
            listItem1: {
                class: "west-texas-investors-club-home",
                link: {
                    href: "https://www.cnbc.com/primetime-shows/",
                    text: "PRIME HOME"
                }
            }
        }
    };

    function determineFranchise() {
        var iD;
        (CNBC_Settings.franchise) ? (iD = CNBC_Settings.franchise.id) : (iD = CNBC_Settings.pageNodeId);
        var franchiseID = parseInt(iD);
        var franchises = [AdventureCapitalists, AmericanGreed, BackInTheGame, BillionDollarBuyer, BitcoinBoomOrBust, BlueCollarMillionaires, ClevelandHustles, CrisisOnWallStreet, JayLenosGarage, MakeMeAMillionaireInventor, OceansOfCrime, SecretLivesOfTheSuperRich, SharkTank, StatenIslandHustle, TheDeed, TheDeedChicago, TheFilthyRichGuide, TheJobInterview, ThePartner, TheProfit, TheProfitInCuba, TheProfitInMarijuanaCountry, WestTexasInvestorsClub, UndercoverBoss, WarrenBuffetDoc, DeadlyRich, DealOrNoDeal];
        return $.grep(franchises, function (franchise) {
            return $.inArray(franchiseID, franchise.franchiseID) !== -1
        });
    };

    function appendByLineToBanner(Franchise) {
        if (CNBC_Settings.productName === "web") {
            var $franchiseText = $(".franchise-header-text").text();
            $(".franchise-banner").after($("<span class=franchise-header-text-tablet>" + Franchise.Banner.content.text + "</span>"));
        } else if (CNBC_Settings.productName === "mobile-touch") {
            var $franchiseText = $(".franchise-header-text").text();
            $(".franchise-banner").after($("<span class=franchise-header-text-mobile>" + Franchise.Banner.content.text + "</span>"));
        }
    };

    function hideAndShowSubMenu() {
        $("li").has(".sub-menu").click(function () {
            $(this).children(".sub-menu").toggle();
            $(".sub-menu").toggleClass("display-sub-menu");
        });

        $("li").has(".sub-menu").hover(function () {
            $(this).children(".sub-menu").toggle();
            $(".sub-menu").toggleClass("display-sub-menu");
        });
    };

    function adjustHeaderMargins($franchiseBanner) {
        var marginsToBeAdjustedMobile = ["cnbcvideo", "creator", "sponsored", "wildcard"];
        var marginsToBeAdjustedWeb = ["cnbcnewsstory", "cnbcvideo", "sponsored", "wildcard"];

        function sift(arr) {
            if (arr.indexOf(CNBC_Settings.nodeType) !== -1) {
                $franchiseBanner.css("margin", "40px auto 0px");
            }
        };
        (CNBC_Settings.productName === "mobile-touch") ? sift(marginsToBeAdjustedMobile):
            (CNBC_Settings.productName === "web") ? sift(marginsToBeAdjustedWeb) :
            console.log("UNKNOWN PRODUCT NAME");
    };

    function createSpecialBanner(Franchise, $newFranchiseHeader, imgUrl) {
        $newFranchiseHeader.after("<a class=special-banner href=" + Franchise.SpecialBanner.link.href + "></a>")
        $(".special-banner").addClass(Franchise.SpecialBanner.link.class);
        $(".special-banner").append("<img src=" + imgUrl + " alt=" + Franchise.SpecialBanner.img.alt + " class=" + Franchise.SpecialBanner.img.class + ">");
    };

    function chooseSpecialBannerImgSize(Franchise, $newFranchiseHeader) {
        var SpecialBannerImgUrl;
        (Franchise.SpecialBanner && CNBC_Settings.productName === "web") ? (SpecialBannerImgUrl = Franchise.SpecialBanner.img.imgUrl, createSpecialBanner(Franchise, $newFranchiseHeader, SpecialBannerImgUrl)) :
        (Franchise.SpecialBanner && CNBC_Settings.productName === "mobile-touch") ? (SpecialBannerImgUrl = Franchise.SpecialBanner.img.imgUrlMobile, createSpecialBanner(Franchise, $newFranchiseHeader, SpecialBannerImgUrl)) :
        console.log("UNKNOWN PAGE TYPE");
    };

    function addFranchiseMenuToDOM(Franchise, $newFranchiseHeader, $franchiseMenu) {
        var BannerImgUrl;
        (CNBC_Settings.productName === "web") ? (BannerImgUrl = Franchise.Banner.img.imgUrl) : (BannerImgUrl = Franchise.Banner.img.imgUrlMobile);

        var $franchiseBanner = $("<h1 class=franchise-banner></h1>");
        var $franchiseBannerLink = $("<a class=" + Franchise.Banner.link.class + " href=" + Franchise.Banner.link.href + "></a>");
        var $franchiseBannerContent = $("<span class=" + Franchise.Banner.content.class + ">" + Franchise.Banner.content.text + "</span>");

        $franchiseBanner.css("background-image", "url(" + BannerImgUrl + ")");
        $franchiseBanner.append($franchiseBannerLink);

        (CNBC_Settings.productName === "mobile-touch") ? ($franchiseBanner.after($franchiseBannerContent), $franchiseBannerContent.after($franchiseMenu)) :
        (CNBC_Settings.productName === "web") ? ($franchiseBannerLink.after($franchiseBannerContent), $franchiseBanner.after($franchiseMenu)) :
        console.log("UNKNOWN PRODUCT NAME");
        $newFranchiseHeader.append($franchiseBanner);
        if (Franchise.hasOwnProperty('Menu')) {
            $franchiseBanner.after($franchiseMenu);
        }
        appendByLineToBanner(Franchise);
        hideAndShowSubMenu();
        adjustHeaderMargins($franchiseBanner);
        chooseSpecialBannerImgSize(Franchise, $newFranchiseHeader);
    };

    function createSubMenu(menuObj) {
        var $subMenu = document.createElement("ul");
        $subMenu.classList = "sub-menu";
        var subMenuObj = menuObj.subMenu;
        Object.keys(subMenuObj).forEach(function (item) {
            var $subMenuListItem = document.createElement("li");
            var $subMenulink = document.createElement("a");
            $subMenuListItem.classList = subMenuObj[item].class;
            $subMenulink.href = subMenuObj[item].link.href;
            $subMenulink.text = subMenuObj[item].link.text;
            $subMenu.append($subMenuListItem);
            $subMenuListItem.appendChild($subMenulink);
        });
        return $subMenu;
    };

    function createMenu($newFranchiseHeader, addFranchiseMenuToDOM) {
        var Franchise = determineFranchise()[0];
        var $franchiseMenu = $("<ul class=franchise-menu></ul>");
        if (Franchise != undefined){
            if (Franchise.hasOwnProperty('Menu')) {
                Object.keys(Franchise.Menu).forEach(function (item) {
                    var menuObj = Franchise.Menu[item];
                    var $listItem = document.createElement("li");
                    var $link = document.createElement("a");
                    $listItem.classList = menuObj.class;
                    $link.classList = menuObj.link.class;
                    $link.href = menuObj.link.href;
                    $link.innerText = menuObj.link.text;
                    $franchiseMenu.append($listItem);
                    $listItem.appendChild($link);
                    if (menuObj.hasOwnProperty("subMenu")) {
                        var $subMenu = createSubMenu(menuObj);
                        $link.after($subMenu);
                    }
                });
                addFranchiseMenuToDOM(Franchise, $newFranchiseHeader, $franchiseMenu);
            } else {
                addFranchiseMenuToDOM(Franchise, $newFranchiseHeader);
            }
        }
    };

    function replaceHeaderMobile(element) {
        var $newFranchiseHeader = $("<div id=franchise-header></div>");
        $(element).replaceWith($newFranchiseHeader);
        createMenu($newFranchiseHeader, addFranchiseMenuToDOM);
    };

    function replaceHeaderWeb(element) {
        var $newFranchiseHeader = $("<div class=franchise-header></div>");
        $(element).replaceWith($newFranchiseHeader);
        createMenu($newFranchiseHeader, addFranchiseMenuToDOM);
    };

    function createHeaderWeb(element) {
        var $newFranchiseHeader = $("<div class=franchise-header></div>");
        $(element).after($newFranchiseHeader);
        createMenu($newFranchiseHeader, addFranchiseMenuToDOM);
    };

    function createHeaderWebGallery(element) {
        var $newFranchiseHeader = $("<div class=franchise-header></div>");
        $(element).before($newFranchiseHeader);
        createMenu($newFranchiseHeader, addFranchiseMenuToDOM);
    }

    function determinePageTypeMobile() {
        ($(".top-section").length > 0) ? replaceHeaderMobile(".top-section"):
            ($(".banner-header").length > 0) ? replaceHeaderMobile(".banner-header") :
            ($("#franchise-header").length > 0) ? replaceHeaderMobile("#franchise-header") :
            console.log("UNKNOWN PAGE TYPE - MOBILE");
    };

    function determinePageTypeWeb() {
        ($("#page_header").length > 0) ? replaceHeaderWeb("#page_header"):
            ($("#franchiseHeader").length > 0) ? replaceHeaderWeb("#franchiseHeader") :
            ($(".franchise_label").length > 0) ? replaceHeaderWeb(".franchise_label") :
            ($("#dart_wrapper_topbanner").length > 0) ? createHeaderWeb("#dart_wrapper_topbanner") :
            (CNBC_Settings.templateName === "slideshow_ng" && CNBC_Settings.brand === "makeit") ? createHeaderWeb(".cnbc-body > .cols2") :
            console.log("UNKNOWN PAGE TYPE - WEB");
    };

    function determineMobileOrWeb() {
        (CNBC_Settings.productName === "mobile-touch") ? determinePageTypeMobile():
            (CNBC_Settings.productName === "web") ? determinePageTypeWeb() :
            console.log("UNKNOWN PRODUCT NAME");
    };

    determineMobileOrWeb();

});
/* file: https://fm-preview.cnbc.com/applications/cnbc.com/resources/files/2016/11/29/img_replace_show_detail_0.js?vn=1480431929*/
$(function(){
	$('div.col1 div.featuredPromo').removeClass('desc_size600_400').addClass('desc_size720_405');
	$('.col1 .featuredPromo img').attr('src',function(k,v){
		return v.replace(/600x400/, '720x405');
	})
	$('div.col1 div.featuredPromo img').attr({'width': 720,'height' : 405});
})
